<!--
 * @Author: 苏州卷积云网络科技有限公司
 * @Date: 2023-11-20 08:51:26
 * @LastEditors: 苏州卷积云网络科技有限公司
 * @LastEditTime: 2023-11-24 14:33:42
 * @Description: 苏州卷积云网络科技有限公司版权所有，违者必究
 * @FilePath: /JCAdmin/src/components/articleList/articleFrom/index.vue
-->
<template>
  <div>
    <el-dialog
      title="选择题目"
      :visible.sync="visible"
      width="896px"
      :before-close="handleClose"
    >
      <article-list v-if="visible" :artList="handle"
       :userIds="userIds" :couponId="couponId"  @close="visible=false"
        @getArticle="getArticle" :keyNum="keyNum"></article-list>
    </el-dialog>
  </div>
</template>

<script>
  import articleList from '../index.vue'
  export default {
    name: 'CouponFrom',
    components:{ articleList },
    data() {
      return {
        visible: false,
        callback: function() {},
        handle: [],
        keyNum: 0,
        couponId: [],
        userIds: ''
      }
    },
    watch: {
      // show() {
      //   this.visible = this.show
      // }
    },
    methods: {
      handleClose() {
        this.visible = false
      },
      getArticle(couponObj) {
        this.callback(couponObj)
        this.visible = false
      }
    }
  }
</script>

<style scoped>

</style>
